<include path="header" />
    <div class="m-title">
        <ul>
          <li>资料修改</li>
          <li><a href="/setting/name">真实姓名</a></li>
          <li><a href="/setting/password">密码修改</a></li>
          <li><a href="/setting/avatar">头像上传</a></li>
          <li><a href="/setting/mail">邮箱设置</a></li>
          <li><a href="/setting/theme">主题设置</a></li>
          <li><a href="/setting/group" class="select">工作组</a></li>
          <li class="right"><a href="/setting/groupadd">+ 创建工作组</a></li>
          <li></li>
        </ul>
    </div>
    <div class="box">
    <form action="/setting/groupedit?id=<?=$group['group_id']?>" method="post">
    <table class="two-cols">
         <tr>
            <td>组名</td>
            <td>
            	<input type="text" name="groupname" value="<?=$group['group_name']?>" />
            </td>
         </tr>
         <tr>
         	<td>成员</td>
            <td>
            	<ul	class="group-members">
                	<? foreach($users as $item){ ?>
                    <li><label><input type="checkbox" name="groupmembers[]" value="<?=$item['user_id']?>"<? if(in_array($item['user_id'], $group['members'])){ ?> checked="checked" <? }?> /> <?=$item['username']?></label></li>
                    <? }?>
                </ul>
            </td>
         </tr>
         <tr>
         	<td>&nbsp;</td>
            <td><input type="submit" value="确认" class="button" /></td>
         </tr>
     </table> 
     </form>
     </div>
<include path="footer" />
  
